var webpack = require('webpack');
var path = require('path');


module.exports = {
    entry: './index.js',
    output: {
        filename: 'bundle.js',
        path: __dirname,
        publicPath: '/'
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                loader: 'babel-loader',
                options: {
                    presets: ['es2015']
                }
            }
        ]
    },
    devServer: {
        port: 8080
    }
}